Skip to content

Add stubs for kafka-python#15817

Merged
srittau merged 5 commits into
python:mainfrom
RasmusNygren:kafka-python-stubs
May 22, 2026
Merged

Add stubs for kafka-python#15817
srittau merged 5 commits into
python:mainfrom
RasmusNygren:kafka-python-stubs

Conversation

@RasmusNygren
Copy link
Copy Markdown
Contributor

No description provided.

@RasmusNygren
Copy link
Copy Markdown
Contributor Author

Note that the maintainer of kafka-python has no intentions to add type-annotations: dpkp/kafka-python#2245

@RasmusNygren RasmusNygren changed the title Initial stubs for kafka-python Add stubs for kafka-python May 20, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@RasmusNygren RasmusNygren marked this pull request as ready for review May 20, 2026 21:06
Comment thread stubs/kafka-python/METADATA.toml Outdated
Comment on lines +3 to +5

[tool.stubtest]
stubtest-dependencies = ["pyperf"]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this dependency needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is required by the kafka.benchmark.* modules. But arguably those modules should be deemed internal and allowlisted instead.

Copy link
Copy Markdown
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit b4566fb into python:main May 22, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants